﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Zone;
namespace SmsSend
{
    public partial class RecMobile : Form
    {
        Func2 fun2 = new Func2();
        public RecMobile()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            string str = textBox1.Text.Trim();
            if (str == "") return;
            
            
            //string[] strs = str.Split(',');
            
            //for (int i = 0; i < strs.Length; i++)
            //{
            //    DebugNew.DebugMethod(i.ToString()+ ":" + strs[i].ToString());

            //}

            StringBuilder sb = new StringBuilder(str);
            for (int i = 0; i < sb.Length; i++)
            {
                if (sb[i] == ',')
                {
                    sb.Insert(++i,Environment.NewLine) ;
                }
            }
            textBox1.Text = sb.ToString();
            textBox1.Text = fun2.GetRegularCode().ToString();
        }
        
    }
}
